package com.lizhipeng07.entity;
import java.util.List;
public class Item {
    private Integer id;
    private String name;
    private String description;
    private Integer sellerId;

    private User seller;
    private List<Bid> bids;
    private List<Comment> comments;
    public Item() {}
    public Item(String name, String description, Integer sellerId) {
        this.name = name;
        this.description = description;
        this.sellerId = sellerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public User getSeller() {
        return seller;
    }

    public void setSeller(User seller) {
        this.seller = seller;
    }

    public List<Bid> getBids() {
        return bids;
    }

    public void setBids(List<Bid> bids) {
        this.bids = bids;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    @Override
    public String toString() {
        return "Item{id=" + id + ", name='" + name + "', sellerId=" + sellerId + "}";
    }
}
